//===================================================
//Author      : GCL
//CreateTime  ：2/1/2019 12:51:52 PM
//Description ：
//===================================================
using UnityEngine;
using System.Collections;

public class DataTableManager : MonoBehaviour
{

    #region SunSong DataBase
    //例子
    public static BasicTableReader PlotTable = new BasicTableReader()
    { 
        tableName = "plotgame", 
        primeKey = "Keyid"
    };

    public static BasicTableReader AnswerTable = new BasicTableReader()
    {
        tableName = "answer",
        primeKey = "KeyID"
    };

    public static BasicTableReader OptionTable=new BasicTableReader()
    {
        tableName = "optionplot",
        primeKey = "KeyId"
    };
    public static BasicTableReader AnswerIDTable=new BasicTableReader()
    {
        tableName = "answeroneid",
        primeKey = "KeyID"
    };
    public static BasicTableReader CardTable=new BasicTableReader()
    {
        tableName = "card",
        primeKey = "KeyID"
    };
    #endregion


    private static DataTableManager _instance = null;
    public static DataTableManager GetInstance()
    {
        if (null == _instance)
        {
            GameObject go = new GameObject("DataTableManager");
            _instance = go.AddComponent<DataTableManager>();
        }
        return _instance;
    }
}
